package com.meida.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.meida.common.mybatis.annotation.TableAlias;

/**
 * 操作记录(例如，新增会员，区域经理审核)表
 *
 * @author flyme
 * @date 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_optlog")
@TableAlias("optlog")
@ApiModel(value = "BusOptlog对象", description = "操作记录(例如，新增会员，区域经理审核)表")
public class BusOptlog extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "optlogId", type = IdType.ASSIGN_ID)
    private Long optlogId;

    @ApiModelProperty(value = "操作类型")
    private String optType;

    @ApiModelProperty(value = "业务类型")
    private String busType;

    @ApiModelProperty(value = "操作值")
    private String content;

    @ApiModelProperty(value = "操作人")
    private Long userId;

    @ApiModelProperty(value = "操作人类型(1前端用户,2后台用户)")
    private Integer userType;

    @ApiModelProperty(value = "业务Id(vipRecordId  backcardRecordId  )")
    private Long businessId;

    private String optIp;

    @ApiModelProperty(value = "是否删除")
    private Integer deleted;

}
